import { Injectable } from '@nestjs/common';
import { CreateDietFoodDto } from './dto/create-diet-food.dto';
import { UpdateDietFoodDto } from './dto/update-diet-food.dto';

@Injectable()
export class DietFoodService {
  create(createDietFoodDto: CreateDietFoodDto) {
    /**
     * 
     * 先插入 DietLog，拿到 dietLogId
再批量插入 DietFood，每条都带上 dietLogId、foodId、unit、unitWeight、count、quantity
这样就完成了一次饮食记录的添加
     */
    return 'This action adds a new dietFood';
  }

  findAll() {
    return `This action returns all dietFood`;
  }

  findOne(id: number) {
    return `This action returns a #${id} dietFood`;
  }

  update(id: number, updateDietFoodDto: UpdateDietFoodDto) {
    return `This action updates a #${id} dietFood`;
  }

  remove(id: number) {
    return `This action removes a #${id} dietFood`;
  }
}
